package com.shioirikukuri.service;

import com.alipay.api.AlipayApiException;
import com.shioirikukuri.vo.PayVo;
import com.shioirikukuri.vo.RefundVo;

import java.util.Map;

public interface IAlipauService {
    /**
     * 支付
     * 返回HTML文本
     * @param vo
     * @return
     */
    String pay(PayVo vo) throws AlipayApiException;

    /**
     * 验签
     * @param params
     * @return
     */
    Boolean rsaCheckV1(Map<String, String> params) throws AlipayApiException;

    /**
     * 退款
     * @param vo
     * @return
     */
    Boolean refund(RefundVo vo) throws AlipayApiException;

}
